package com.baizhi.controller;


import com.baizhi.entity.CmfzMenu;
import com.baizhi.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljh
 * @since 2020-08-18
 */
@RestController
@RequestMapping("/cmfzMenu")
public class CmfzMenuController {

    @Autowired
    private CmfzMenuService cmfzMenuService;
    @RequestMapping("/selectMenu")
    public List<CmfzMenu> selectMenu(){
        //通过shiro获取到当前user对象
        List<CmfzMenu> cmfzMenus = cmfzMenuService.selectMenu();
        return cmfzMenus;
    }
}
